package com.yex.entity.otc;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * otc免手续费配置
 * </p>
 *
 * @author LittleLiu
 * @since 2018-07-30
 */
@TableName("otc_fee_config")
public class OtcFeeConfig extends Model<OtcFeeConfig> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 用户id
     */
    private Integer userId;
    /**
     * 后台用户
     */
    private Integer admin;
    /**
     * 创建日期
     */
    private Date createDate;
    /**
     * 修改日期
     */
    private Date modifyDate;
    /**
     * 委托费率
     */
    private BigDecimal entrustFee;
    /**
     * 吃单费率
     */
    private BigDecimal orderFee;
    /**
     * 是否开启（1，开启，0未开启）
     */
    private Integer status;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getAdmin() {
        return admin;
    }

    public void setAdmin(Integer admin) {
        this.admin = admin;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    public BigDecimal getEntrustFee() {
        return entrustFee;
    }

    public void setEntrustFee(BigDecimal entrustFee) {
        this.entrustFee = entrustFee;
    }

    public BigDecimal getOrderFee() {
        return orderFee;
    }

    public void setOrderFee(BigDecimal orderFee) {
        this.orderFee = orderFee;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "OtcFeeConfig{" +
        ", id=" + id +
        ", userId=" + userId +
        ", admin=" + admin +
        ", createDate=" + createDate +
        ", modifyDate=" + modifyDate +
        ", entrustFee=" + entrustFee +
        ", orderFee=" + orderFee +
        ", status=" + status +
        "}";
    }
}
